<?php date_default_timezone_set('PRC');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
 
<head> 
	<script src="<?php echo base_url()?>js/jquery-1.4.2.min.js" type="text/javascript"></script>
	<script src="<?php echo base_url()?>js/taaask.js"></script>
	<link rel="stylesheet" href="<?php echo base_url();?>style/auto/jquery.ui.all.css">
	<script src="<?php echo base_url();?>js/jquery-1.4.2.min.js"></script>
	<script src="<?php echo base_url();?>js/auto/jquery.ui.core.js"></script>
	<script src="<?php echo base_url();?>js/auto/jquery.ui.widget.js"></script>
	<script src="<?php echo base_url();?>js/auto/jquery.ui.button.js"></script>
	<script src="<?php echo base_url();?>js/auto/jquery.ui.position.js"></script>
	<script src="<?php echo base_url();?>js/auto/jquery.ui.autocomplete.js"></script>
	<script src="<?php echo base_url();?>js/auto/combobox.js"></script>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title>Highrise: Tasks</title> 
<script>
function autosearch(str){
//alert(str)
return false
	var xmlhttp;
	if (str.length==0)
	{
		document.getElementById("tie").innerHTML="";
		return;
	}
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
		xmlhttp.onreadystatechange=function(){
	if (xmlhttp.readyState==4 && xmlhttp.status==200)
	{
		if(xmlhttp.responseText==null){
		document.getElementById("tie").style.display="none";
	} else {
		document.getElementById("tie").innerHTML=xmlhttp.responseText;
		document.getElementById("tie").style.display="block";
	}
	}
	}
	xmlhttp.open("GET","http://www.zhuozhan.com/e/search/autosearch.php?keyword="+str,true);
	xmlhttp.send();
} 


/*$.ajax({
		type: "post",
		url: "<?php echo base_url();?>index.php/task/tasknum",
		dataType: "json",  
		data:"",
		success: function(json){
			document.title="（"+json.tasknum+"条任务）Highrise: Tasks";
		}
	});

setInterval(function(){
	$.ajax({
		type: "post",
		url: "<?php echo base_url();?>index.php/task/tasknum",
		dataType: "json",  
		data:"",
		success: function(json){
			document.title="（"+json.tasknum+"条任务）Highrise: Tasks";
		}
	});},30000)*/

</script>
<link type="text/css" rel="stylesheet" href="<?php echo base_url()?>style/Public.css" />
  <link href="<?php echo base_url()?>style/all.css" media="screen" rel="stylesheet" type="text/css" /> 
  <link href="<?php echo base_url()?>style/application.css" media="print" rel="stylesheet" type="text/css" /> 
  <!--[if IE]><link href="https://d1a993iq9azmzq.cloudfront.net/rev_b499db4//stylesheets/ie/base.css" media="screen" rel="stylesheet" type="text/css" /><![endif]--> 
  <link href="<?php echo base_url()?>style/blue.css" media="screen" rel="stylesheet" title="Theme" type="text/css" /> 
  <link href="<?php echo base_url()?>style/taaask.css" rel="stylesheet" type="text/css"/>
  <noscript><style type="text/css">#app_header, div.wrapper { display: none }</style></noscript> 
  
</head> 
 
<body class="clearfix upcoming tasks narrow_page_with_sidebar_outside webkit  windows"  onload="" style="background-color:#F3F1EC"> 
  
 
  
 
 
  <div id="quick_show_window" style="display: none"> 
    <div class="quick_show_window_position"> 
      <div class="quick_show_window_wrapper"> 
        <div class="quick_show_window_content"> 
        </div> 
      </div> 
    </div> 
  </div> 
 
  <div id="task_flash" style="display: none"> 
    <div class="inner_task_flash"> 
    </div> 
  </div> 
 
  <noscript> 
  <div class="javascript_disabled_notification">
    <div class="inner">
      <h1>You need to change a setting in your web browser</h1>
      <p>Highrise requires a browser feature called <strong>JavaScript</strong>. All modern browsers support JavaScript. You probably just need to change a setting in order to turn it on.</p>
 
      <p>Please see: <a href="http://www.google.com/support/bin/answer.py?answer=23852">How to enable JavaScript in your browser</a>.</p>
 
      <p>If you use ad-blocking software, it may require you to allow JavaScript from highrisehq.com.</p>
 
      <p>Once you've enabled JavaScript you can <a href="">try loading this page again</a>.</p>
 
      <p>Thank you.</p>
    </div>
  </div>
</noscript> 
 
 
	<div id="app_header"> 
	<div class="background"></div> 
	<div class="boundary"> 
		
		  <div id="upgrade_bar"> 
		    <a href="/account" behavior="return_to">Upgrade your free account</a> 
		    to manage additional contacts, upload files, invite more users, and get more out of Highrise.
		  </div> 
		
 
		<div id="inner_header_wrapper"> 
			<a href="/" id="app_logo"><img alt="Logo-topleft" src="<?php echo base_url();?>images/logo-topleft.png" style="padding-top: 8px;" width="116" _height="16" /></a> 
 
			<table id="page_actions" style=" _width:90%;"> 
				<tr> 
					<td class="tiny"> 
						<div class="menu_container ie6_add_ctn" > 
							
								<span class="action"><a href="<?php echo site_url('gs/showcustomerindex');?>" style=" _background:none" behavior="return_to"><span style=" _background:none; _cursor:pointer">添加联系人</span></a></span> 
	            	
						</div> 
					</td> 
					<td class="tiny"> 
						<div class="menu_container ie6_add_cmp" style="_width:90px" > 
							<span class="action"><a href="<?php echo site_url('gs/showAddgs');?>" behavior="new_task_button"  style=" _background:none" class="menu_target"><span style=" _background:none; _cursor:pointer">增加公司</span></a></span> 
							<div id="balloon_new_task" class="balloon left menu_content task_form_balloon"> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
 
    <div class="balloon_content"> 
      
<div class="new_task"> 
  <form action="/tasks" class="new_task" id="form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc=" /></div> 
    
    
 
    <div id="form_body_task" class="task_form"> 
 
  <input id="from" name="from" type="hidden" value="tasks" /> 
<input id="collection" name="collection" type="hidden" value="upcoming" /> 
 
  <div class="new_task"> 
    <h3>Add a new task</h3> 
  
    <p class="task_body"> 
      <input class="autofocus" id="body_task" name="task[body]" size="30" type="text" /> 
    </p> 
 
    <div id="controls_task" class="controls"> 
      <h5>When's it due?</h5> 
      <p> 
        <select name="task[frame]" onchange="Tasks.changeFrame(this)"><option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-18&quot;,&quot;task[due_at][minute]&quot;:&quot;30&quot;,&quot;task[due_at][hour]&quot;:&quot;1&quot;}" selected="selected" value="today">Today</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">Tomorrow</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">This week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">Next week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">Later</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">Specific date/time&hellip;</option></select> 
        <span class="link_to_set_day_and_time">or <a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); return false;">Set date/time</a></span> 
      </p> 
 
      <div class="set_day_and_time"> 
        <div class="inner"> 
          <input id="calendar_task" name="task[due_at][date]" type="hidden" value="2011-06-18" />
<!--<script type="text/javascript"> 
//<![CDATA[
async("new CalendarDateSelect(\"calendar_task\", {\"id\":\"calendar_task\"});")
//]]>
</script> -->
          <div class="set_task_time"> 
            at <select id="task_due_at_hour" name="task[due_at][hour]"><option value="1" selected="selected">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="4">4</option> 
<option value="5">5</option> 
<option value="6">6</option> 
<option value="7">7</option> 
<option value="8">8</option> 
<option value="9">9</option> 
<option value="10">10</option> 
<option value="11">11</option> 
<option value="12">12</option></select>:<select id="task_due_at_minute" name="task[due_at][minute]"><option value="00">00</option> 
<option value="15">15</option> 
<option value="30" selected="selected">30</option> 
<option value="45">45</option></select><select id="task_due_at_am_pm" name="task[due_at][am_pm]"><option value="am">am</option> 
<option value="pm" selected="selected">pm</option></select> 
          </div> 
        </div> 
      </div> 
 
      
 
      <h5>Choose a category</h5> 
      <p> 
        <select id="category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)"><option value="" selected="selected">None</option> 
<option value="2893097">Call</option> 
<option value="2893098">Demo</option> 
<option value="2893099">Email</option> 
<option value="2893100">Fax</option> 
<option value="2893101">Follow-up</option> 
<option value="2893102">Lunch</option> 
<option value="2893103">Meeting</option> 
<option value="2893104">Ship</option> 
<option value="2893105">Thank-you</option> 
<option value="new">New category...</option></select> 
        <a href="/task_categories" behavior="return_to" class="edit_categories">Edit categories</a> 
      </p> 
    
      <p> 
        <input name="task[public]" type="hidden" value="0" /><input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
        <label for="public_checkbox_task">Let everyone see this task</label> 
      </p> 
    
    </div> 
  </div> 
</div> 
 
 
    <div class="submit"> 
      <p> 
        <input name="commit" type="submit" value="Add this task" /> 
        <span>or</span> 
        <a href="#" class="menu_target admin">Cancel</a> 
      </p> 
    </div> 
  </form> 
</div> 
 
    </div> 
  </div> 
</div> 
 
 
						</div> 
					</td> 
					<td class="long"> 
	          <div id="search_wrapper"> 
	            <div class="quick_find"> 
	              <div class="field" style="position:relative;"> 
	                <input type="text" id="sidebar_live_search" name="term"
	                  class="live_search autofocus overlayable"
	                  title="Jump to a contact, case, deal, or tag..."
	                  source="/subjects/search.json"
	                  autocomplete="off" autocorrect="off" autocapitalize="off"
	                  data-focus-priority="0" /> 
	              </div> 
	            </div> 
	          </div> 
					</td> 
				</tr> 
			</table> 
 
			<div id="global_links_container" > 
			  
			    <div class="menu_container"> 
			      <a href="#" class="name menu_target" style="color:#FFFFFF"> 
			        Account &amp; settings
			        <span></span> 
			      </a> 
			      <div id="balloon_global_links" class="balloon center menu_content "> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
 
    <div class="balloon_content"> 
      <ul class="global_links"> 
  <li><a href="/users/507179/edit" behavior="return_to" class="">My info</a></li> 
  
    
      <li><a href="/users" class="">Users</a></li> 
      <li><a href="/groups" class="">Groups</a></li> 
    
    <li><a href="/custom_fields" class="">Custom Fields</a></li> 
    <li><a href="/account/settings" behavior="return_to" class="">Logo and color</a></li> 
    
      <li><a href="/account" behavior="return_to" class="">Account, upgrades, billing</a></li> 
    
  
</ul> 
 
    </div> 
  </div> 
</div> 
 
 
			    </div> 
			  
 
			  <a href="<?php echo site_url('user/loginout');?>" style="color:#fff" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc='); f.appendChild(s);f.submit();return false;">登出</a> 
			  <a href="http://help.37signals.com/highrise/?e=aW5mb0BhaW0tY2hpbmEuY29t&amp;u=aHR0cHM6Ly9haW0xLmhpZ2hyaXNlaHEuY29tL3Rhc2tz&amp;n=YWltY2hpbmE%3D&amp;f=amFjayBmYW4%3D" class="help" target="_blank">Help</a> 
			</div> 
		</div> 
	</div> 
</div> 
 
 

  <div id="wrapper"> 
    <div id="inner_wrapper"> 
      <div id="main_body" class="column FRIE6" style="_float:right" > 
        
        
        
        <div id="blank_slate" class="clearfix"> 
          <div class="liner"> 
            
   <img src="<?php echo base_url();?>images/blankslate_icon_tasks.png" width="175" height="150" alt="Tasks" />
 
<div class="content"> 
  <h1>Tasks help you get things done.</h1> 
  <h2>Never forget to &ldquo;Call Jim at 4pm&rdquo; or &ldquo;Fax the contract to Karen tomorrow morning.&rdquo; You can set a task for yourself or assign one to someone else. Highrise will even send an email or SMS reminder so you don&rsquo;t forget.</h2> 
  <div class="menu_container" id="new_task_container_for_page"> 
    <span class="button"><a href="#" class="menu_target"><span>Add your first task</span></a></span> 
    
<div id="balloon_new_task_per_page" class="balloon left menu_content balloon_edit_task"> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
      <div id="task_flash_per_page" class="balloon_flash" style="display: none"> 
        <div class="inner_task_flash"> 
</div> 
 
      </div> 
    
 
    <div class="balloon_content"> 
      
<div class="new_task"> 
  <form action="/tasks" class="new_task" id="page_form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc=" /></div> 
    
    <input id="parent" name="parent" type="hidden" value="page" /> 
 
    <div id="page_form_body_task" class="task_form"> 
 
  <input id="from" name="from" type="hidden" value="tasks" /> 
<input id="collection" name="collection" type="hidden" value="upcoming" /> 
 
  <div class="new_task"> 
    <h3>Add a new task</h3> 
  
    <p class="task_body"> 
      <input class="autofocus" id="page_body_task" name="task[body]" size="30" type="text" /> 
    </p> 
 
    <div id="page_controls_task" class="controls"> 
      <h5>When's it due?</h5> 
      <p> 
        <select name="task[frame]" onchange="Tasks.changeFrame(this)"><option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-18&quot;,&quot;task[due_at][minute]&quot;:&quot;30&quot;,&quot;task[due_at][hour]&quot;:&quot;1&quot;}" selected="selected" value="today">Today</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">Tomorrow</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">This week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">Next week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">Later</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">Specific date/time&hellip;</option></select> 
        <span class="link_to_set_day_and_time">or <a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); return false;">Set date/time</a></span> 
      </p> 
 
      <div class="set_day_and_time"> 
        <div class="inner"> 
          <input id="page_calendar_task" name="task[due_at][date]" type="hidden" value="2011-06-18" />
<!--<script type="text/javascript"> 
//<![CDATA[
async("new CalendarDateSelect(\"page_calendar_task\", {\"id\":\"page_calendar_task\"});")
//]]>
</script> -->
          <div class="set_task_time"> 
            at <select id="task_due_at_hour" name="task[due_at][hour]"><option value="1" selected="selected">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="4">4</option> 
<option value="5">5</option> 
<option value="6">6</option> 
<option value="7">7</option> 
<option value="8">8</option> 
<option value="9">9</option> 
<option value="10">10</option> 
<option value="11">11</option> 
<option value="12">12</option></select>:<select id="task_due_at_minute" name="task[due_at][minute]"><option value="00">00</option> 
<option value="15">15</option> 
<option value="30" selected="selected">30</option> 
<option value="45">45</option></select><select id="task_due_at_am_pm" name="task[due_at][am_pm]"><option value="am">am</option> 
<option value="pm" selected="selected">pm</option></select> 
          </div> 
        </div> 
      </div> 
 
      
 
      <h5>Choose a category</h5> 
      <p> 
        <select id="page_category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)"><option value="" selected="selected">None</option> 
<option value="2893097">Call</option> 
<option value="2893098">Demo</option> 
<option value="2893099">Email</option> 
<option value="2893100">Fax</option> 
<option value="2893101">Follow-up</option> 
<option value="2893102">Lunch</option> 
<option value="2893103">Meeting</option> 
<option value="2893104">Ship</option> 
<option value="2893105">Thank-you</option> 
<option value="new">New category...</option></select> 
        <a href="/task_categories" behavior="return_to" class="edit_categories">Edit categories</a> 
      </p> 
    
      <p> 
        <input name="task[public]" type="hidden" value="0" /><input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
        <label for="public_checkbox_task">Let everyone see this task</label> 
      </p> 
    
    </div> 
  </div> 
</div> 
 
 
    <div class="submit"> 
      <p> 
        <input name="commit" type="submit" value="Add this task" /> 
        <span>or</span> 
        <a href="#" class="menu_target admin">Cancel</a> 
      </p> 
    </div> 
  </form> 
</div> 
 
    </div> 
  </div> 
</div> 
 
 
 
  </div> 
</div> 
 
 
          </div> 
        </div> 
 
        
		<div id="screen_body"> 
        
        <!-- page sidebar --> 
        <div id="page_sidebar"> 
            <div class="liner">
            <div class="sidebox_wrapper"> 
                <div class="liner"> 
                    <div class="sidebox closedbox"> 
                        <h5>工作职责</h5> 
                        <div class="ical_link"> 
                            <?php echo $duty;?>
                        </div> 
                    </div> 
                </div> 
            </div>
            </div> 
            
            <div class="liner">
                <div class="sidebox_wrapper"> 
                    <div class="liner"> 
                        <div class="sidebox closedbox"> 
                            <h5>常用网址</h5> 
                            <div class="ical_link"> 
                                <?php
                                    foreach($task_url as $val){
                                        echo '<div>'.$val['t_name'].'</div>';
                                    }
                                ?>
                            </div> 
                        </div> 
                    </div> 
                </div>
            </div> 
            
            <!--聊天-->
            <div class="liner">
                <div class="sidebox_wrapper"> 
                    <div class="liner"> 
                        <div class="sidebox closedbox"> 
                            <h5>Chat</h5> 
                            <div class="ical_link"> 
                                <iframe allowtransparency="yes" height="350" width="160" src="<?php echo base_url();?>/index.php/task/chat" scrolling="yes"></iframe>
                                
                                    
                                    
									
                            </div> 
                        </div> 
                    </div> 
                </div>
            </div> 
            
        </div> 
        <!--// page sidebar --> 
        
        
        
 
        <!-- page --> 
        <div id="page" style="position:static"> 
 
            <!-- page header --> 
            <div id="page_header_wrapper" class=""> 
              
              <div id="page_header" style="margin-bottom:0px"> 
 
                <div class="page_header">
			<h1>今日任务</h1>		
</div> 

              </div> 
            </div> 
            <!--// page header --> 
			<?
            	$data = date('N',time());
				if($data == 6 ){
			?>		
			<div class="prompt" >
				<div class="tit">
					<label class="m-l30">
						<div class="FL"><img src="<?php echo base_url();?>images/alarm.gif" width="30" height="30"/></div>
						<div class="FL">每日提醒：</div>
					</label>
					<div id="cross" class="cross" ><!--<img src="<?php echo base_url();?>images/cross.png" width="20" height="20" alt="关闭"/>--></div>
					<div class="clear"></div>
				</div>
				<div id="pagePool" class="pContent ">
					<ul class="promptContent ">
						<li>本周六11点开会</li>
																									
					</ul>
					<div class="clear"></div>
				</div>
			</div>
            <? } ?>
<script>
function crossSwitchSystem(){
	var c  = document.getElementById("cross");
	var pc = $(".pContent");
	var crossSwitch = {
		cross : c,
		tips  : "close",
		tide  : pc,
		turn  : function(){
			var o = this;
			this.cross.onclick = function(){
				if(o.tips == "close"){
					o.tide.slideUp("slow");
					o.tips  = "open";
					o.cross.children[0].title = "打开";      //这个属性写不到对象中去，就是定义为一个属性之后，无法更改其值（憎恨自己的无知吧）
				}else{
					o.tide.slideDown("slow");
					o.tips  = "close";
					o.cross.children[0].title = "关闭";
				}
			};
		}
	};
	crossSwitch.turn();
}

var CURR  = 4;           // 页面要显示的提醒信息数目
var forwards = 0;        // 向前滑动的指针
var backgroundward = 3;  // 向后滑动的指针
var p     = document.getElementById("pagePool");
var pool  = p.children[0];
var last  = p.children[1].children[0];      // 上一页
var ctl   = p.children[2].children[0];      // 显示的四个页码号
var next  = p.children[3].children[0];      // 下一页
var final = p.children[3].children[1];      // 最终页
var l     = pool.children.length;
var pNo   = parseInt(l / 4);        // 需要分的页数，但并不准确

if((l % 4) != 0){
	pNo ++;              // 考虑到余数问题
}
var s = [];              // 用来装载页码对象的数组
var pointer = 0;
var bf = 0;                 // 记录上一个被点击的页码元素
function pageInit(){
	for( var i = 0; i < l; i ++ ){
		//alert(ctl.children[i].tagName);
		if(i >= CURR){
			pool.children[i].style.display = "none";
		}
	}
	ctl.innerHTML = "";
	var pageNo = pNo + 1;
	for( var i = 1; i < pageNo; i ++ ){
		ctl.innerHTML +='<li>' + i + '</li>' ;
	}
}

function showList(pt){
	var f =  pt + CURR ;           //显示出的最右边的页码号
	var b = pt * 4;
	var e = b + 4;
	var t = 0;
	$(pool).fadeOut(500, function(){
		for( var i = 0; i < l; i ++ ){
			pool.children[i].style.display = "none";
			//$(pool.children[i]).fadeOut("slow");
		}
//		for( var i = b; i < e; i ++ ){
//			pool.children[i].style.display = "block";
//			//$(pool.children[i]).fadeIn(500);
//		}
		var t = 0;
		while( t < 4 && b < l ){
			pool.children[b].style.display = "block";
			b ++;
			t ++;
			
		}				
	});
	$(pool).fadeIn(500);
}

function page(){
	pageInit();
	for( var i = 0; i < pNo; i ++ ){
		var o = {
			ele  : ctl.children[i],
			n    : i,
			pt   : null,
			clk  : function(){
				var t = this;
				this.ele.onclick = function(){
					s[bf].ele.className = "";          //非常恶心的代码，可笑的书写顺序
					if(t.n == pointer && t.n != 0){
						var dis = - ( t.n - 1 ) * 22;
						$(ctl).animate({marginLeft: dis + 'px'},"slow");
						pointer --;
						
					}
					if(t.n == (pointer + 3) && t.n != pNo - 1){
						var dis = - ( t.n - 3 + 1 ) * 22;
						$(ctl).animate({marginLeft: dis + 'px'},'slow');	
						pointer ++;
					}
					
					this.className = "border";
					bf = t.n;
					showList( bf );
				}
			}
		};
		s.push(o);
		s[i].clk();
	}
	s[0].ele.className = "border";
	last.onclick = function(){
		if(bf > 0){           //当前选中的页码不为首页的情况才执行
			s[bf].ele.className = "";
			var l = bf - 1;
			if(s[l].n == pointer && s[l].n != 0){
				var dis = - ( s[l].n - 1 ) * 22;
				$(ctl).animate({marginLeft: dis + 'px'},"slow");
				pointer --;
			}
			s[l].ele.className = "border";
			bf = l;
			showList( bf );
		}
	}
	next.onclick = function(){
		if( bf < pNo - 1 ){
			s[bf].ele.className = "";
			var ne = bf + 1;
			if(s[ne].n == ( pointer + 3 ) && s[ne].n != pNo - 1 ){
				var dis = - ( s[ne].n - 3 + 1 ) * 22;
				$(ctl).animate({marginLeft: dis + 'px'},"slow");
				pointer ++;
			}
			s[ne].ele.className = "border";
			bf = ne;
			showList( bf );
		}
	}
	final.onclick = function(){
		if( bf < pNo - 1 ){
			s[bf].ele.className = "";
			s[pNo - 1].ele.className = "border";
			if( pointer + 3 < pNo - 1 ){
				dis = - ( pNo -1 - 3 ) * 22;
				$(ctl).animate({marginLeft:dis + "px"},"slow");
				pointer = pNo - 1 - 3;
			}
			bf = pNo - 1;
			showList( bf );
		}
	}
}
crossSwitchSystem();
page(); 
</script>							
            <!-- page contents --> 
			<div id="page_contents_wrapper" class="clearfix autoHeight " style="position:static" > 
 
              <!-- main column --> 
              <div id="page_main_column" class="column" style="position:static" > 
                <div class="liner"> 
<div id="completed_operations hidden"> 
  <div behavior="content" class="content"></div> 
</div> 
<?php if($rank <= 0):?>
 <input type="hidden" id="userid" value="<?php echo $uid?>"/>
 <?php endif;?>
<div id="parties"> 
  <div id="browser"
  class=" "
  data-href="/parties"
  data-cookie-name="party_filters"  style="position:static" > 
 
  <div class="party_search_filters"  style="position:static" > 
  
  
  
  
  <div id="page_filter_options" behavior="filter_picker" style="position:static" > 

<div class="dashed_frame" style="_width:98%" >
		<?php echo $username;?>
      	<div>
			<input type="radio" value="1"  name="t_rank" checked="checked" />一般
			<input type="radio" value="2"  name="t_rank"  />比较
			<input type="radio" value="3"  name="t_rank"  />紧急
            <input type="radio" value="4"  name="t_rank"  />BUG
            <input type="radio" value="0"  name="t_rank"  />常用网址
            <?php if($ut_id ==0){?>
            <input type="radio" value="5"  name="t_rank"  />每日任务
            <?php }?>
		</div>
  		<div class="FL m-r10">
			<input type="text" id="addTask"  style="width:400px; height:25px; font-size:20px;" onkeydown="KeyDown()" />
            <input class="button" style="padding:4px; _padding:2px; _line-height:10px" id="newTaskSubmit" type="submit" value="提交"/>
            <img id="newTaskSubmit_i" style="display:none"  src="<?php echo base_url();?>/images/indicator.gif" />
            <select name="task_name" id="task_name">
            	<option value="0">客户选择</option>
                <?php foreach($task_name AS $key=>$val){?>
                <option value="<?php echo $val['ut_id']?>"><?php echo $val['task_title']?></option>
                <? } ?>
            </select>
		</div>
        <script>
			var addT = document.getElementById('addTask'); 
            addT.onkeydown = function(){
                if(navigator.userAgent.indexOf('MSIE') > -1){
                    var e = event.keyCode;
                }else{
                    var e = window.event|arguments[0].which;
                }
				
                if(e == 13){
                    qqq();
                }
				
				/*if(addT.value.indexOf('@')){
					alert(e)
				}*/
            } 
        </script>
		<div class="FL "><?php if(!empty($user_list)){?> 
		<select id="user_id">
		<option value="0"  selected="selected"></option>
        <?php foreach($user_list as $user){?> <option value="<?php echo $user['m_id']?>"><?php echo $user['m_username']?>&nbsp;&nbsp;未完成：（<?php echo $user['no']?>）</option><?php }?>
		</select>
		&nbsp;
		<?php }?>
		</div>
		<div class="clear"></div>

		<div class="FL m-r20 m-t5 " style="_margin-top:0px; _height:24px"><select name="completetime" id="comptime">
				<option value="1">当天</option>
				<option value="2">明天</option>
				<option value="3">后天</option>
		</select></div>
		<div CLASS="FL"><input type="button" value="筛选" style="padding:4px; _padding:2px; _line-height:10px" onclick="$('#shaixuan').toggle('slow')" /></div>
		<div class="clear"></div>
  	</div>
		<form action="<?php echo site_url('Task/search');?>" method="post">
	<div class="hidden " id="shaixuan" ><ul>
	<?php foreach($userlist AS $key=>$ul):?>
	<li style="height:55px;">
    	<input type="checkbox" value="<?php echo $ul['m_id']?>" name="user[]"/>&nbsp;&nbsp;<?php echo $ul['m_username']?>&nbsp;&nbsp;
    	<div>
        	过期（<?php echo $ul['passtime']?>）
        </div>
    	<div>
        	未完成 （<?php echo $ul['no']?>）
        </div>
    </li>
	<?php if(($key+1)%4 == 0):?>
	<?php endif;?>
	<?php endforeach;?>
	<li><input type="submit" value="查询" /></li>
	</ul></div>
	</form>
	<div class="clear"></div>
    <a class="menu_target centerHere " href="<?php echo base_url();?>index.php/task/getdonetask">已完成的任务</a> 
  </div> 
 

<ul id="task_list" class="company">
	<?php 
	
	foreach($task_list as $key => $val){?>
    <div>
		<?php 
			switch($key){
				case 1:echo '今天';break;
				case 2:echo '明天';break;
				case 3:echo '后天';break;
				case 4:echo '过期('.$task_count.')';break;
			}
		?>
    </div>
	<?php foreach($val as $task){?>
    <li title="<?php echo $task['t_rank'];?>" id="task_<?php echo $task['t_id'];?>" class="hover_container menu_container">
      <div id="show_task_13349446" class="task show_task" style=""> 
        <div id="content_task_13349446 "> 
          <div id="balloon_container_task_13349446" class="reset-on-dismissal" style="display:none"><div class="menu_content"></div></div> 
          <div class="checkbox hover_target " > 
          
            <input id="task_done" name="task[done]" onclick="changestatus(this,<?php echo $task['t_id']?>)" type="checkbox" value="1" <?php if($task['status']==1){?>checked="checked"<?php }?> />
          </div> 
          <div class="body "> 
            <span id="_<?php echo $task['t_id']?>" class="hover_target " style="width:500px"> 
     		<?php	
				switch($task['t_rank'])
				{
					
					case 5:
						echo "[<font>每日</font>]";
						echo '<a href="'.base_url().'index.php/task/gettotask/'.$task['ut_id'].'">'.$task['task_title'].'</a>';
						echo "<font>".$task['t_name']."</font>";break;
					case 4:
						echo "[<font>BUG</font>]";
						echo '<a href="'.base_url().'index.php/task/gettotask/'.$task['ut_id'].'">'.$task['task_title'].'</a>';
						echo "<font>".$task['t_name']."</font>";break;
					case 3:
						echo "[<font color=red>紧急</font>]";
						echo '<a href="'.base_url().'index.php/task/gettotask/'.$task['ut_id'].'">'.$task['task_title'].'</a>';
						echo "<font color=red>".$task['t_name']."</font>";break;
					case 2:
						echo "[<font color=#CC6633>比较</font>]";
						echo '<a href="'.base_url().'index.php/task/gettotask/'.$task['ut_id'].'">'.$task['task_title'].'</a> ';
						echo $task['t_name'];break;
					case 1:
						echo '<a href="'.base_url().'index.php/task/gettotask/'.$task['ut_id'].'">'.$task['task_title'].'</a> ';
						echo $task['t_name'];break;
					default:
						echo "[<font>常用网址</font>]";
						echo '<a href="'.base_url().'index.php/task/gettotask/'.$task['ut_id'].'">'.$task['task_title'].'</a> ';
						echo "<font>".$task['t_name']."</font>";break;
				} 
				
			?>
			<?php if($rank > 0){?>[<font color="#FF6600" size="-1"><?php echo $task['m_username'];?></font>]<?php }?><font color="#999999" size="-1">(<?php echo $task['completedate']?>)</font><span class="appendTask " style="color:#999999; font-size:12px; margin-left:10px"></span>
            </span>
            <span id="" class="FR folder pointer" style="_margin-top:-20px"><img src="<?php echo base_url(); ?>images/022.png" /></span>  
          </div>
          <div class="clear"></div>
        </div> 
        <div class="task_desc_list" style="display:none;padding-left:30px;"><?php echo $task['desc'];?></div>
        <div  class="task_c"  style="height:0px;" >
        
        <textarea  style="display:none;" id="task_text_<?php echo $task['t_id']?>" name="<?php echo $task['t_id'];?>" ></textarea></div>
      </div> 
    </li>
    <?php }}?>
</ul>

<script>

 function changestatus(obj,t_id)
 {
 	if(obj.checked)
	{
		if($('#task_'+t_id).attr("title") == 4 || $('#task_'+t_id).attr("title") == 3){
			$('#_'+t_id).wrap('<s></s>');
			if($('#task_'+t_id).children(".show_task").children(".task_desc_list").html()==''){
				obj.checked=''
				$('#_'+t_id).unwrap('<s></s>');
				alert('必须填写内容');
				$('#task_'+t_id).children(".show_task").children(".task_c").animate({height:"60px"});/*以动画的形式将其div的高度拉到60像素*/
				$('#task_'+t_id).children(".show_task").children(".task_c").children("textarea").css({display:"block",width:"98%", height:"90%"});
				$('#task_'+t_id).children(".show_task").children(".task_desc_list").css({display:"block",width:"90%"});
				$('#task_'+t_id).children(".show_task").children(".task_desc_list").animate({height:"auto",overflow:"hidden"});
				return false
			}
		}else{
			$('#_'+t_id).wrap('<s></s>');
		}
		
		$.get("<?php echo base_url();?>index.php/task/changestatus/"+t_id+"/1/"+$('#task_'+t_id).attr("title"), 
		function(data)
		{
			
		});
	}else{
		$('#_'+t_id).unwrap('<s></s>');
		$.get("<?php echo base_url();?>index.php/task/changestatus/"+t_id+"/0/"+$('#task_'+t_id).attr("title"),
		function(data)
		{
			
		});
	}
 }
 var before;
 var submitNewTask = 0;
 var textareaNum = $("textarea").length;
 function foldBox(){
	textareaNum = $("textarea").length;
	$(".folder").parents(".show_task").children(".task_c").children("textarea").focusout(function(){
		if( $(this).parents(".show_task").children(".task_c").height() != 0 ){
			if(true){
				var a=before;                                              /* 根据索引before  ,关闭打开的任务描述*/
				$(this).parents(".task_c").animate({height:"0px"});
				$(this).css({display:"none"});
				var con=$(this).val();
				var t = $(this);
				if(con !='')
				{
					$.ajax({  
						type: "post",  
						url: "<?php echo base_url();?>index.php/task/addtms_desc",
						dataType: "json",  
						data:"t_id="+$(this).attr("name")+"&content="+con,
						success: function(json){
							t.parents(".show_task").children(".task_desc_list").html(json.content);
						}
					});
					$("textarea").eq(a).attr("value",'');
				}
			}
			before = $(this).index(".folder");                                                               /*把打开任务的索引保存至before 中 */
		}
	});
	
	$(".folder").click(function(){
		if( $(this).parents(".show_task").children(".task_c").height() == 0 ){                 /*如果任务描述为关闭状态，将其打开*/   
			if(before != null){var a=before;                                                  /* 根据索引before  ,关闭打开的任务描述*/
				$(".task_desc_list").eq(before).css({display:"none"});
				$(".task_c").eq(before).animate({height:"0px"});
				$("textarea").eq(before).css({display:"none"});
				var con=$("textarea").eq(before).val();
				if(con !='')
				{
/*					$.get("/tms/index.php/task/addtms_desc/"+$("textarea").eq(before).attr("name")+"/"+con, 
					function(data)
					{
						//$("textarea").eq(a).value=data;
						///var  = $("#task_desc_list").eq(a).attr("id");
						$(".task_desc_list").eq(a).html(data);
					});*/
					$.ajax({  
						type: "post",  
						url: "<?php echo base_url();?>index.php/task/addtms_desc",
						dataType: "json",  
						data:"t_id="+$("textarea").eq(before).attr("name")+"&content="+con,
						success: function(json){
							//alert(json.content);
							$(".task_desc_list").eq(a).html(json.content);
						}
					}); 
					
					$("textarea").eq(a).attr("value",'');
				}
			}       
			$(this).parents(".show_task").children(".task_c").animate({height:"60px"});                        /*以动画的形式将其div的高度拉到60像素*/
			$(this).parents(".show_task").children(".task_c").children("textarea").css({display:"block",width:"98%", height:"90%"});
			$(this).parents(".show_task").children(".task_desc_list").css({display:"block",width:"90%"});
			$(this).parents(".show_task").children(".task_desc_list").animate({height:"auto",overflow:"hidden"});
			before = $(this).index(".folder");                                                               /*把打开任务的索引保存至before 中 */
		}else{
			$(this).parents(".show_task").children(".task_c").animate({height:"0px"});
			$(this).parents(".show_task").children(".task_c").children("textarea").css({display:"none"});
			$(this).parents(".show_task").children(".task_desc_list").css({display:"none"});			
		}
		//textSubmit();
	});
}
foldBox();

function qqq(){
	var uid;
	if(<?php echo $rank? 'true':'false';?>)
		{
			uid = $('#user_id').val();
		}else{
			uid = $('#user_id').val();
			//uid = $('#userid').val();
		}
	
		if($("#addTask").val() != null){
		$('#newTaskSubmit_i').css({'display':"inline"});
		$('#newTaskSubmit').css({'display':"none"});
		//alert(encodeURIComponent($("#addTask").val()))
		//alert("content="+encodeURIComponent($("#addTask").val())+"&user_id="+uid+"&t_rank="+$(":radio[name='t_rank'][checked]").val()+"&completetime="+$("#comptime").val()+"&task_name="+$("#task_name").val())
		//return false;
			$.ajax({  
				type: "post",  
				url: "<?php echo base_url();?>index.php/task/addtask",
				dataType: "json",  
	            data:"content="+encodeURIComponent($("#addTask").val())+"&user_id="+uid+"&t_rank="+$(":radio[name='t_rank'][checked]").val()+"&completetime="+$("#comptime").val()+"&task_name="+$("#task_name").val(),
				success: function(json){
					$('#newTaskSubmit_i').css({'display':"none"});
					$('#newTaskSubmit').css({'display':"inline"});
					//alert(json.content);
					$("#task_list").html(json.content);
					$(".hover_container").eq(0).css({marginTop:"-45px",opacity:"0"});
					$(".hover_container").eq(0).animate({marginTop:"0px",opacity:"1"});
					foldBox();
				}
			}); 
		}
}

function taskSubmit(){
	$("#newTaskSubmit").click(function(){
		qqq();
	});
}
taskSubmit();
</script>
</div> 
 
  <div id="parties_loading" behavior="spinner" class="live_search_spinner" style="display:none;"> 
    <div class="liner"> 
      <h3>Loading</h3> 
      <!--<img alt="Dots-white" src="https://d1a993iq9azmzq.cloudfront.net/rev_1465618//images/dots-white.gif" /> -->
    </div> 
  </div> 
 
  <div class="content" behavior="content"> 
    
 
 
  <div data-page-offset="0"
    data-page-size="50"
    data-is-last-page="true"
    data-query="kind=parties&amp;n=0"> 
  </div>  
 
  <div class="parties"> 
 
	
  </div> 
 
 
  </div> 
 
  <div class="pager" behavior="pager" style="display:none;"> 
  <span> 
    <a href="#" class="disabled" rel="first">First</a> 
    <a href="?n=0" rel="prev" style="display:none;">&larr; Previous</a> 
  </span> 
 
  <span class="current">Page 1</span> 
 
  <span> 
    <a href="?n=50" rel="next" style="display:none;">Next &rarr;</a> 
    <a href="#" class="disabled" rel="last">Last</a> 
  </span> 
</div> 
<div style="clear:left;"></div> 
 
</div> 
 
</div> 
 
 
 
                </div> 
              </div> 
              <!--// main column --> 
 
              
              <!-- page sidebar --> 
              <div id="page_sidebar" class="Right column" style="display:none"> 
                <div class="liner"> 
                  
  <div class="sidebox_wrapper"> 
    <div class="liner"> 
 
      
 
      
        <div class="sidebox closedbox"> 
          
            <h5>Easy in easy out</h5> 
            <a href="/contact_imports/new" behavior="return_to" id="import_contacts_link">Import</a> 
            or
            <a href="/contact_exports/new" behavior="return_to">Export</a> your contacts.
          
        </div> 
      
 
      
        <div behavior="tag_picker" class="sidebox closedbox"> 
          <h5>Browse by tag</h5> 
          <dl class="tags_list"><dt>1</dt><dd><span><a href="/tags/1569636-123" behavior="tag_picker" class="tag">123</a> <a href="/tags/1569637-123123" behavior="tag_picker" class="tag">123123</a></span></dd></dl> 
        </div> 
      
    </div> 
  </div> 
 
 
                </div> 
              </div> 
              <!--// page sidebar --> 
              
              
            </div>
            <!--// page contents --> 
          
        </div> 
        <!--// page --> 
      </div> 
        
      </div> 
 
      <div id="global_sidebar" class="column"> 
        <div class="liner"> 
          <div id="global_nav"> 
  <ul style="_width:196px;"> 
    
 
    <li id="dashboard" class=""><a href="/" class="t-l " >Latest activity</a></li> 
    <li id="parties"><a href="/parties" class="t-l" >Contacts <span class='stat'>~1 person</span></a></li> 
    <li id="tasks"><a href="<?php echo site_url('task/gettotask');?>" class="selected t-l">任务 <span class='stat'>任务</span></a></li> 
    <li id="kases"><a href="<?php echo site_url('task/duty/'.$uid);?>" class="t-l">工作职责 <span class='stat'>工作职责</span></a></li> 
    <li id="deals"><a href="<?php echo site_url('gs/');?>" class="t-l">公司信息 <span class='stat'>公司信息</span></a></li> 
    <li id="search"><a href="<?php echo site_url('knowledge/');?>" class="t-l">知识管理</a></li> 
	<li id="search"><a href="<?php echo site_url('customer/customer_list');?>" class="t-l">联系人列表</a></li> 
  </ul> 
</div> 
          
          <div id="recent_items"> 
  
    <hr /> 
  
    <h4>Recently viewed</h4> 
    <div class="recent_items"> 
      
        <a href="/deals/1123454" class="recent_item "> 
          <span class="sprite avatar blank_avatar deal deal_dollar" style="background: url(<?php echo base_url();?>images/highrise_sprites.png) no-repeat -222px -162px; width: 32px; padding-top: 32px; " title="dealʲô" id="">dealʲô</span> 
          <span class="recent_name">dealʲô</span> 
          <span class="recent_desc">Deal</span> 
        </a> 
      
        <a href="/people/74844834-jack" class="recent_item "> 
          <span class="sprite avatar blank_avatar person " style="background: url(<?php echo base_url();?>images/highrise_sprites.png) no-repeat -112px -148px; width: 32px; padding-top: 32px; " title="jack" id="">jack</span> 
          <span class="recent_name">jack</span> 
          <span class="recent_desc"></span> 
        </a> 
      
    </div> 
  
</div> 
          
        </div> 
      </div> 
    </div> 
  </div> 
 
  <hr style="display: none;" /> 
 
	<div id="preloaded_images" style="position:absolute; height:0px; overflow:hidden;"> 
		<img alt="Dots-white" src="images/dots-white.gif" /> 
		<img alt="Dots-black" src="images/dots-black.gif" /> 
	</div> 

<!--[if IE 6]> 
<script>
function correctPNG() 
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i];
var imgName = img.src.toUpperCase();
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : "";
var imgClass = (img.className) ? "class='" + img.className + "' " : "";
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
var imgStyle = "display:inline-block;" + img.style.cssText;
if (img.align == "left") imgStyle = "float:left;" + imgStyle;
if (img.align == "right") imgStyle = "float:right;" + imgStyle;
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
var strNewHTML = "<span "+ imgID + imgClass + imgTitle + "style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src='" + img.src + "', sizingMethod='scale');\"></span>";
img.outerHTML = strNewHTML;
i = i-1;
}
}
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->
<script>
	obj = document.getElementsByName('task[done]')
	for(i=0;i<obj.length;i++){
		if(obj[i].checked == true){
			obj[i].checked=false
		}
	}
	
</script>
</body> 
</html> 